package com.cl.service.impl;

import com.cl.mapper.UserInfoMapper;
import com.cl.pojo.UserInfo;
import com.cl.service.UserInfoService;

import java.util.List;
import java.util.Map;

public class UserInfoServiceImpl implements UserInfoService {
    private UserInfoMapper userInfoMapper;

    public void setUserInfoMapper(UserInfoMapper userInfoMapper) {
        this.userInfoMapper = userInfoMapper;
    }

    @Override
    public int insertUid(int uid) {
        return userInfoMapper.insertUid(uid);
    }

    @Override
    public List<Map<String, Object>> queryAllUserInfo() {
        return userInfoMapper.queryAllUserInfo();
    }

    @Override
    public List<Map<String, Object>> queryByUid(int uid) {
        return userInfoMapper.queryByUid(uid);
    }

    @Override
    public int updateInfo(UserInfo userInfo) {
        return userInfoMapper.updateInfo(userInfo);
    }
}
